package com.example.demo.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


@Component("sysResource.model")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
@Entity(name = "sysResource")
@Table(name = "sys_resource")
public class SysResourceModel extends Model implements Serializable{
 
	private static final long serialVersionUID = 309342745398435211L;
	 
	/** 资源名称  **/
	private String  resourceName;
	
	/** 上级ID  **/
	private String  pid;
	
	/** 链接  **/
	private String  url;
	
	/** 菜单标识  **/
	private String  rel;
	
	/** 站点ID  **/
	private String  siteId;
	
	/**   **/
	private Integer  sortId;

	/**   **/
	private String  isExtend;
	
	/** 是否自动刷新  **/
	private String  isAutoRefresh;
	
	/** 资源类型（MENU->菜单，BUTTON->按钮）  **/
	private String  resourceType;
	
	/** 模块名，资源类型为按钮时必填  **/
	private String  module;
	
	/** 权限值，资源类型为按钮时必填  **/
	private String  privilege;
 
	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRel() {
		return rel;
	}

	public void setRel(String rel) {
		this.rel = rel;
	}

	public String getSiteId() {
		return siteId;
	}

	public void setSiteId(String siteId) {
		this.siteId = siteId;
	}

	public Integer getSortId() {
		return sortId;
	}

	public void setSortId(Integer sortId) {
		this.sortId = sortId;
	}

	public String getIsExtend() {
		return isExtend;
	}

	public void setIsExtend(String isExtend) {
		this.isExtend = isExtend;
	}

	public String getIsAutoRefresh() {
		return isAutoRefresh;
	}

	public void setIsAutoRefresh(String isAutoRefresh) {
		this.isAutoRefresh = isAutoRefresh;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public String getPrivilege() {
		return privilege;
	}

	public void setPrivilege(String privilege) {
		this.privilege = privilege;
	}
	
	
	
	
	
}
